package com.egao.common.publicly.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.egao.common.module.system.entity.Layout;
import com.egao.common.publicly.mapper.PubliclyLayoutMapper;
import com.egao.common.publicly.service.PubliclyLayoutService;
import org.springframework.stereotype.Service;

/**
 * 网页接口实现类
 * @author pyx
 */
@Service
public class PubliclyLayoutServiceImpl extends ServiceImpl<PubliclyLayoutMapper, Layout> implements PubliclyLayoutService {
    @Override
    public Layout footer() {
        QueryWrapper<Layout> layoutQueryWrapper = new QueryWrapper<>();
        layoutQueryWrapper.eq("title","页脚");
        return baseMapper.selectOne(layoutQueryWrapper);
    }
}
